//
//  NSDate+Debug.h
//  EverVCiOSClient
//
//  Created by Oz on 14-5-29.
//  Copyright (c) 2014年 EverVC. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDate (ISO_8601_String)
///  2000年5月
+ (NSString *)yy_MM_WithTimestamp:(NSString *)timestamp;
///  200-05-08
+ (NSString *)yy_MM_ddWithTimestamp:(NSString *)timestamp;
///  2018-04-26 13：26：33
+ (NSString *)yy_MM_dd_HH_mm__ssWithTimestamp:(NSString *)timestamp;

///  2000-05-08  T+1日
+ (NSString *)t_1_yy_MM_dd_TimeString;
///  05月08日
+ (NSString *)MM_ddWithTimestamp:(NSString *)timestamp;
///  如果是今天显示--05:30, 如果是今年显示--05月08日， 否则显示--2015年05月08日
+ (NSString *)yyyy_MM_ddOrMM_ddWithTimestamp:(NSString *)timestamp;
///  05-08 13:30
+ (NSString *)MM_dd_HH_mmWithTimestamp:(id)timestamp;
///  获取月份： 8月
+ (NSString *)monthStringWithTimestamp:(NSString *)timestamp;
///  获取Day： 15
+ (NSString *)DayStringWithTimestamp:(NSString *)timestamp;
+ (NSString *)DayStringWithDateString:(NSString *)dateStr;

///  获取2017-05-11 12:06:50.123 Date
+ (NSDate *)dateWithDateFor_yyyy_MM_dd__HH__mm__ss_SSS_String:(NSString *)dateStr;
/// 获取今天0点 2017-05-11 00:00:00.000
+ (NSString *)todayDateStringFor_yyyy_MM_dd__HH__mm__ss_SSS;
/// 获取明天0点前1秒 2017-05-11 23:59:59.000
+ (NSString *)tomorrowDateStringFor_yyyy_MM_dd__HH__mm__ss_SSS;
///   2000-01-01
+ (NSString *)stringFor_yyyy_MM_ddWithDateString:(NSString *)dateString;
///  2000-01-01 00:00:00
//+ (NSString *)stringFor_yyyy_MM_dd__HH__mm__ssWithDateString:(NSString *)dateString;

///  获取当前时间戳（北京时间）
+ (NSString *)currentTimestamp;
///  目标时间五分钟之前显示时间
+ (BOOL)currentIsDisplayTimeWithTimestamp:(NSString *)timestamp;
/// 是否超过30天
+ (BOOL)isExceed30DayWithTagetTimestamp:(NSString *)timestamp;
///  是否超过2分钟
+ (BOOL)isExceed2MinuteWithTargetTimestamp:(NSString *)timestamp;

//- (NSString *)timeString;
//  2000-01-01
- (NSString *)dateString_yyyy_MM_dd;
- (NSString *)dateTimeString2;
- (NSString *) formated_ISO_8601_TimeString;

///  2015年05月08日
- (NSString *)dateString;
///  2000-05-08
- (NSString *)dateString_yyyy_MM_dd__HH__mm__ss;

///  年/月/日/时/分
///  2015/12/01/15/02
- (NSString *)currentDateString;

//+ (NSString *)prettyDateTimeString:(NSTimeInterval)timeInterval;

- (NSString *)dateStringFor_MM_dd;

///  2017-05-11 12:06:50.123
- (NSString *)dateTimeStringFor_yyyy_MM_dd__HH__mm__ss_SSS;
///  今天
- (BOOL)isToday;
///  今年
- (BOOL)isThisYear;




/**
 * @brief 判断当前时间是否在fromHour和toHour之外。如，fromHour=8，toHour=23时，即为判断当前时间是否在8:00之前，23:00之后
 */
+ (BOOL)isBesideFromHour:(NSInteger)fromHour toHour:(NSInteger)toHour;

///  2000-01-01  当月的第一天
+ (NSString *)firstDayOfTheMonth;
///  2000-08-08
+ (NSString *)currentTime;

@end
